import {
  request
} from './request'

//获取歌曲下载url
export function getDownloadUrl(id) {
  return request({
    url: '/song/download/url?cookie=' + sessionStorage.getItem("cookie"),
    params: {
      id
    }
  })
}

//获取用户电台
export function getUserDj(uid) {
  return request({
    url: '/user/dj?cookie=' + sessionStorage.getItem("cookie"),
    params: {
      uid
    }
  })
}

//获取云盘数据
export function getCloudInfo() {
  return request({
    url: '/user/cloud?cookie=' + sessionStorage.getItem("cookie"),
    params: {
    }
  })
}

//获取云盘歌曲数据

export function getCloudMusic(id) {
  return request({
    url: '/user/cloud/detail?cookie=' + sessionStorage.getItem("cookie"),
    params: {
      id
    }
  })
}